From ddec45933761e77070c7f70d8b416c7df6e96a8b Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 14 Sep 2004 14:29:59 +0000 Subject: [PATCH] Remove warning during device discovery as increasing number of garmins do this... git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@899 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/jeeps/gpsapp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gpsbabel/jeeps/gpsapp.c b/gpsbabel/jeeps/gpsapp.c index 9322b082a..8fcd7df78 100644 --- a/gpsbabel/jeeps/gpsapp.c +++ b/gpsbabel/jeeps/gpsapp.c @@ -215,17 +215,17 @@ static int32 GPS_A000(const char *port) else { int maxct = 3; + /* + * The unit may return more than one packet, so read and + * discard all but the product inquiry response. + */ while (maxct--) { - char pb[256]; (void) GPS_Packet_Read(fd, &rec); GPS_Send_Ack(fd, &tra, &rec); if (rec->type == 0xfd) { GPS_A001(rec); break; } - snprintf(pb, sizeof(pb), "Ignoring unknown packet 0x%x.", - rec->type); - GPS_Warning(pb); } } -- 2.30.2